<template>
    <div>
        <van-search v-model="value" show-action label="地址" placeholder="请输入搜索关键词" @click="onSearch">
        </van-search>
    </div>
</template>

<script setup>
import { ref } from 'vue';
    const value = ref('');
    import { useRouter } from 'vue-router';
    const router=useRouter()
    const onSearch = () =>{
        router.push('/search')
    };
</script>

<style lang="scss" scoped></style>